import config from '@/config';

const BASE_URL = '/ndx/backend';
const PAGE_URL = {
    MAIN_PAGE : "/course/list",
    LOGIN_PAGE: "/login",
}
const API_LOGIN_URL = {
    API_LOGIN : "/login",
    API_LOGIN_COOKIE: "/loginByToken",
}
const API_URL = {

    API_COMMON_UPLOAD_IMAGE : "/upLoad/image",
    API_COMMON_UPLOAD_APK : "/version/upLoad",

    API_VERSION_LIST  : "/version/list",
    // 1 用户信息接口
    API_USER_LIST : "/appUser/listPage",
    API_USER_OPTION_LIST : "/appUser/optionList",
    API_USER_ADD : "/appUser/add",
    API_USER_UPDATE : "/appUser/update",
    API_USER_DELETE : "/appUser/delete",
    API_USER_DETAIL : "/appUser/detail",
    API_USER_DISABLE : "/appUser/disable",
    API_USER_ENABLE : "/appUser/enable",
    // 2 课程接口
    API_COURSE_LIST : "/course/listPage",
    API_COURSE_OPTION_LIST : "/course/optionList",
    API_COURSE_ADD : "/course/add",
    API_COURSE_UPDATE : "/course/update",
    API_COURSE_DELETE : "/course/delete",
    API_COURSE_DETAIL : "/course/detail",
    API_COURSE_PUBLISH : "/course/publish",
    API_COURSE_DOWN_SHELF : "/course/downShelf",
    // 3 课程--章节--接口
    API_COURSE_CHAPTER_LIST : "/course/chapter/listPage",
    API_COURSE_CHAPTER_OPTION_LIST : "/course/chapter/optionList",
    API_COURSE_CHAPTER_ADD : "/course/chapter/add",
    API_COURSE_CHAPTER_UPDATE : "/course/chapter/update",
    API_COURSE_CHAPTER_DELETE : "/course/chapter/delete",
    API_COURSE_CHAPTER_DETAIL : "/course/chapter/detail",
    API_COURSE_CHAPTER_PUBLISH : "/course/chapter/publish",
    API_COURSE_CHAPTER_DOWN_SHELF : "/course/chapter/downShelf",
    // 4 课程--题目--接口
    API_COURSE_QUESTION_LIST : "/course/question/listPage",
    API_COURSE_QUESTION_ADD : "/course/question/add",
    API_COURSE_QUESTION_UPDATE : "/course/question/update",
    API_COURSE_QUESTION_DELETE : "/course/question/delete",
    API_COURSE_QUESTION_DETAIL : "/course/question/detail",
    API_COURSE_QUESTION_DETAIL_V : "/course/question/detailV",
    API_COURSE_QUESTION_PUBLISH : "/course/question/publish",
    API_COURSE_QUESTION_DOWN_SHELF : "/course/question/downShelf",
    // 5 试卷--接口
    API_EXAM_PAPER_LIST : "/examPaper/listPage",
    API_EXAM_PAPER_OPTION_LIST : "/examPaper/optionList",
    API_EXAM_PAPER_ADD : "/examPaper/add",
    API_EXAM_PAPER_UPDATE : "/examPaper/update",
    API_EXAM_PAPER_DELETE : "/examPaper/delete",
    API_EXAM_PAPER_DETAIL : "/examPaper/detail",
    API_EXAM_PAPER_DETAIL_V : "/examPaper/detailV",
    API_EXAM_PAPER_PUBLISH : "/examPaper/publish",
    API_EXAM_PAPER_DOWN_SHELF : "/examPaper/downShelf",
    // 6 试卷--试题--接口
    API_EXAM_PAPER_QUESTION_LIST : "/examPaper/question/listPage",
    API_EXAM_PAPER_QUESTION_ADD : "/examPaper/question/add",
    API_EXAM_PAPER_QUESTION_UPDATE : "/examPaper/question/update",
    API_EXAM_PAPER_QUESTION_DELETE : "/examPaper/question/delete",
    API_EXAM_PAPER_QUESTION_DETAIL : "/examPaper/question/detail",
    API_EXAM_PAPER_QUESTION_DETAIL_V : "/examPaper/question/detailV",
    API_EXAM_PAPER_QUESTION_PUBLISH : "/examPaper/question/publish",
    API_EXAM_PAPER_QUESTION_DOWN_SHELF : "/examPaper/question/downShelf",
    // 7 版本--接口
    API_VERSION_LIST : "/version/listPage",
    API_VERSION_ADD : "/version/add",
    API_VERSION_UPDATE : "/version/update",
    API_VERSION_DELETE : "/version/delete",
    API_VERSION_DETAIL : "/version/detail",
    API_VERSION_DETAIL_V : "/version/detailV",
    API_VERSION_PUBLISH : "/version/publish",
    API_VERSION_DOWN_SHELF : "/version/downShelf",
    API_VERSION_UPLOAD : "/version/upLoad",
    // 8 轮播图--接口
    API_ROTATION_IMAGES_LIST : "/rotationImages/listPage",
    API_ROTATION_IMAGES_ADD : "/rotationImages/add",
    API_ROTATION_IMAGES_UPDATE : "/rotationImages/update",
    API_ROTATION_IMAGES_DELETE : "/rotationImages/delete",
    API_ROTATION_IMAGES_DETAIL : "/rotationImages/detail",
    API_ROTATION_IMAGES_DETAIL_V : "/rotationImages/detailV",
    API_ROTATION_IMAGES_PUBLISH : "/rotationImages/publish",
    API_ROTATION_IMAGES_DOWN_SHELF : "/rotationImages/downShelf",
    // 9 首页考试提示信息--接口
    API_EXAM_TIP_LIST : "/examTip/listPage",
    API_EXAM_TIP_ADD : "/examTip/add",
    API_EXAM_TIP_UPDATE : "/examTip/update",
    API_EXAM_TIP_DELETE : "/examTip/delete",
    API_EXAM_TIP_DETAIL : "/examTip/detail",
    API_EXAM_TIP_DETAIL_V : "/examTip/detailV",
    API_EXAM_TIP_PUBLISH : "/examTip/publish",
    API_EXAM_TIP_DOWN_SHELF : "/examTip/downShelf",
}
const API_URL_MAP = Object.keys(API_URL).map(item=>{
    return API_URL[item];
})
export {API_URL, API_URL_MAP, API_LOGIN_URL, PAGE_URL, BASE_URL};